package ${customFilePackageName};

import top.jiangqiang.qianyi.business.model.request.${entity}ListRequest;
import top.jiangqiang.qianyi.business.model.request.${entity}PageRequest;
import top.jiangqiang.qianyi.business.model.request.${entity}SaveRequest;
import top.jiangqiang.qianyi.business.model.request.${entity}UpdateRequest;
import top.jiangqiang.qianyi.business.model.response.${entity}DetailResponse;
import top.jiangqiang.qianyi.business.model.response.${entity}ListResponse;
import top.jiangqiang.qianyi.business.model.response.${entity}PageResponse;
import top.jiangqiang.qianyi.common.base.response.PageResult;
import top.jiangqiang.qianyi.common.base.response.Result;


import java.util.List;
<#if customSuperEntityClass??>
import ${customSuperEntityClassPackageName}.${customSuperEntityClass};
import ${package.Service}.${table.serviceName};
import ${package.Entity}.${entity};
</#if>
/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${customClassName} : ${customSuperEntityClass}<${entity}>
<#else>
public interface ${customClassName} extends ${customSuperEntityClass}<${table.serviceName},${entity}> {

    Result<PageResult<${entity}PageResponse>> page(${entity}PageRequest request);

    Result<List<${entity}ListResponse>> list(${entity}ListRequest request);

    Result<Void> add(${entity}SaveRequest request);

    Result<Void> update(${entity}UpdateRequest request);

    Result<${entity}DetailResponse> detail(Long id);

    Result<Void> delete(Long id);

}
</#if>
